package controllers.calendar;

import models.calendar.Event;
import play.Logger;
import play.mvc.Controller;


/**
 * @author Konovalov_Nik
 */
public class CalendarController extends Controller {
    public static void calendar() {
        render();
    }

    public static void createEvent(String name, String content, String dateOfBeginning, String dateOfEnding) {

        Event event = new Event(name, content, dateOfBeginning, dateOfEnding);
        event.save();
        }
}
